Platform Explorer / Nuxeo Platform LTS 2017 9.10

Component org.nuxeo.ecm.core.orphanVersionsCleanup

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.orphanVersionsCleanup">

  <extension target="org.nuxeo.ecm.core.scheduler.SchedulerService" point="schedule">
    <schedule id="orphanVersionsCleanup">
      <!-- cleanup every day at 1:30 AM -->
      <cronExpression>0 30 1 * * ?</cronExpression>
      <event>orphanVersionsCleanup</event>
    </schedule>
  </extension>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
    <listener name="orphanVersionsCleanup" async="true" postCommit="true"
      class="org.nuxeo.ecm.core.versioning.OrphanVersionCleanupListener">
      <event>orphanVersionsCleanup</event>
    </listener>
  </extension>

  <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
    <documentation>
      Configuration property for the maximum number of orphan versions to delete in one transaction.
      This is only meaningful if the OrphanVersionCleanupListener is active.
    </documentation>
    <property name="org.nuxeo.orphanVersionsCleanup.commitSize">1000</property>
  </extension>

</component>